import request from '@/utils/request'

// 查询井漏记录列表
export function listWellLostRecord(query) {
  return request({
    url: '/loss/wellLostRecord/list',
    method: 'get',
    params: query
  })
}

// 查询井漏记录详细
export function getWellLostRecord(id) {
  return request({
    url: '/loss/wellLostRecord/' + id,
    method: 'get'
  })
}

// 新增井漏记录
export function addWellLostRecord(data) {
  return request({
    url: '/loss/wellLostRecord',
    method: 'post',
    data: data
  })
}

// 修改井漏记录
export function updateWellLostRecord(data) {
  return request({
    url: '/loss/wellLostRecord',
    method: 'put',
    data: data
  })
}

// 删除井漏记录
export function delWellLostRecord(id) {
  return request({
    url: '/loss/wellLostRecord/' + id,
    method: 'delete'
  })
}
